package com.qys.livesMall.shortVideo.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 短视频用户关联表
 * </p>
 *
 * @author
 * @since 2023-05-29
 */
@Getter
@Setter
@TableName("h2_short_video_user")
@Schema(name = "ShortVideoUser", description = "短视频用户关联表")
public class ShortVideoUser implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    @TableField(value = "user_id")
    private Long userId;

    @Schema(description = "短视频id")
    @TableField(value = "video_id")
    private Long videoId;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "视频连接")
    private String url;

    @Schema(description = "封面图片")
    private String img;

    @Schema(description = "详情")
    private String detail;

    @Schema(description = "收藏")
    private Byte collection;

    @Schema(description = "收藏时间")
    private LocalDateTime collectionTime;

    @Schema(description = "点赞")
    @TableField(value = "`like`")
    private Byte like;

    @Schema(description = "点赞时间")
    private LocalDateTime likeTime;
}
